import {createStackNavigator, createBottomTabNavigator, createAppContainer} from "react-navigation"
import { Nav } from "../_utils"

import { ApplyAutoLogin } from "./ApplyAutoLogin"
import { ApplyLogin } from "./ApplyLogin"

import { ApplyHomes } from "./ApplyHomes"
import { ApplyMajor } from "./ApplyMajor"
import { ApplyApps } from "./ApplyApps"

import { ApplyGoodsDetail } from "./ApplyGoodsDetail"
import { ApplyShareTo } from "./ApplyShareTo"

import { ApplyHistory } from "./ApplyHistory"
import { ApplySearch } from "./ApplySearch"

import { ApplyMsg } from "./ApplyMsg"
import { ApplyMoments } from "./ApplyMoments"

import { ApplyMe } from "./ApplyMe"
import { ApplyOrder } from "./ApplyOrder"
import { ApplyFavorite } from "./ApplyFavorite"

const ApplybottomTabNavigator = createBottomTabNavigator({
    ApplyHomes : {screen:ApplyHomes, navigationOptions:{title:"首页"}},
    ApplyHistory : {screen:ApplyHistory, navigationOptions:{title:"搜索"}},
    ApplyMsg : {screen:ApplyMsg, navigationOptions:{title:"消息"}},
    ApplyMoments : {screen:ApplyMoments, navigationOptions:{title:"朋友圈"}},
    ApplyMe : {screen:ApplyMe, navigationOptions:{title:"我"}},
}, {
    initialRouteName: "ApplyHomes",
    tabBarOptions:Nav.tabBarOptions,
})

export const ApplyNavigatorObject = {
    ApplyAutoLogin,
    ApplyLogin,
    ApplyMain : {screen:ApplybottomTabNavigator, navigationOptions:{header:null}},
    ApplyMajor,
    ApplyApps,
    ApplyGoodsDetail,
    ApplyShareTo,

    ApplySearch,
    ApplyOrder,
    ApplyFavorite,
};